<?php
	function adc_exist($id)
	{
		$bdd = PDO2::getInstance();

		$requete = 'SELECT *
					FROM '.TABLE_ADC.'
					WHERE '.ID_ADC.' = \''.$id.'\'';

		$adc = $bdd->prepare($requete);
		$adc->execute();

		if($adc->rowCount() == 1)
			return true;
		else
			return false;
	}
	
	function forum_exist($id)
	{
		$bdd = PDO2::getInstance();
	
		$requete = 'SELECT *
					FROM '.TABLE_FORUM.'
					WHERE '.ID_FORUM.' = \''.$id.'\'';
	
		$adc = $bdd->prepare($requete);
		$adc->execute();
	
		if($adc->rowCount() == 1)
			return true;
		else
			return false;
	}
	
	function fba_exist($id)
	{
		$bdd = PDO2::getInstance();
	
		$requete = 'SELECT *
		FROM '.TABLE_FICHE_BILAN_ACTION.'
		WHERE '.ID_ACTION_FICHE_BILAN_ACTION.' = \''.$id.'\'';
	
		$fba = $bdd->prepare($requete);
		$fba->execute();
	
		if($fba->rowCount() == 1)
			return true;
		else
			return false;
	}
	
	function fbf_exist($id)
	{
		$bdd = PDO2::getInstance();
	
		$requete = 'SELECT *
		FROM '.TABLE_FICHE_BILAN_FORUM.'
		WHERE '.ID_FORUM_FICHE_BILAN_FORUM.' = \''.$id.'\'';
	
		$fbf = $bdd->prepare($requete);
		$fbf->execute();
	
		if($fbf->rowCount() == 1)
			return true;
		else
			return false;
	}
